← Back to issue list

python3 ctypes can't find libs on due to ld cache

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1861026
Type
issue
State
open
Author
~jdstrand
Labels
Created
2020-01-27 19:47:39.118489+00:00
Updated
2020-12-04 13:08:08.994762+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

python3-magic 'undefined symbol: magic_open' on UC devices but not classic (ctypes issue) With the snap in https://code.launchpad.net/~jdstrand/+git/test-python3-magic the snap works fine on classic distro, but not on UC16 or UC18: On classic distro (eg, Ubuntu 19.10): $ snapcraft $ sudo snap install --dangerous ./test-python3-magic_0_amd64.snap $ test-python3-magic /bin/ls /bin/ls: application/x-executable; charset=binary On UC16 and UC18: $ test-python3-magic /bin/ls Traceback (most recent call last): File "/snap/test-python3-magic/x1/bin/test-python3-magic", line 3, in <module> import magic File "/snap/test-python3-magic/x1/usr/lib/python3/dist-packages/magic/__init__.py", line 361, in <module> add_compat(globals()) File "/snap/test-python3-magic/x1/usr/lib/python3/dist-packages/magic/__init__.py", line 325, in add_compat from magic import compat File "/snap/test-python3-magic/x1/usr/lib/python3/dist-packages/magic/compat.py", line 61, in <module> _open = _libraries['magic'].magic_open File "/snap/test-python3-magic/x1/usr/lib/python3.6/ctypes/__init__.py", line 361, in __getattr__ func = self.__getitem__(name) File "/snap/test-python3-magic/x1/usr/lib/python3.6/ctypes/__init__.py", line 366, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: python3: undefined symbol: magic_open Using 'base: core' or 'base: core18' makes no difference. Snapcraft 3.9.7 and 3.9.8 have the same behavior.

Evaluation history

No evaluation history available.